package com.fyl.factory;

import com.fyl.dao.UserDao;
import com.fyl.dao.impl.UserDaoImpl;

public class MyBeanFactory1 {


    public MyBeanFactory1(String name) {
        System.out.println("MyBeanFactory1的构造函数");
    }

    public static UserDao userDao (String name, int age){
        //Bean创建之前可以进行一些其他业务逻辑操作
        return new UserDaoImpl();
    }
}
